<template>
    <div class="app-container">
        <el-form inline
                 label-width="80px">
            <el-form-item label="选择部门">
                <el-input style="width:150px"></el-input>
            </el-form-item>
            <el-form-item label="选择门店">
                <el-input style="width:150px"></el-input>
            </el-form-item>
            <el-form-item label="运营状态">
                <el-select style="width:150px">
                    <el-option :value="1">开启</el-option>
                    <el-option :value="0">关闭</el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <el-button type="primary"
                           icon="el-icon-search"
                           size="mini"
                           @click="handleQuery">搜索</el-button>
                <el-button icon="el-icon-refresh"
                           size="mini"
                           @click="resetQuery">重置</el-button>
            </el-form-item>
        </el-form>

        <el-table v-loading="loading"
                  :data="list"
                  @selection-change="handleSelectionChange">
            <el-table-column type="selection"
                             width="55"
                             align="center"></el-table-column>
            <el-table-column label="所属部门"></el-table-column>
            <el-table-column label="门店名称"></el-table-column>
            <el-table-column label="站点名称"></el-table-column>
            <el-table-column label="站点类型"></el-table-column>
            <el-table-column label="运营状态"></el-table-column>
        </el-table>
    </div>
</template>

<script>
export default {
    data() {
        return {
            list: [],
            selection: [],
        };
    },
    methods: {
        /** 抛出数据 */
        emitData() {
            return this.selection[0];
        },
        handleSelectionChange(selection) {
            this.selection = selection;
        },
    },
}
</script>
